home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-MIPS / PRCTL.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  998b  |  43 lines

  1. /*
  2.  * IRIX prctl interface
  3.  *
  4.  * The IRIX kernel maps a page at PRDA_ADDRESS with the
  5.  * contents of prda and fills it the bits on prda_sys.
  6.  * $Id: prctl.h,v 1.1 1997/12/02 02:28:28 ralf Exp $
  7.  */
  8.  
  9. #ifndef __PRCTL_H__
  10. #define __PRCTL_H__
  11.  
  12. #define PRDA_ADDRESS 0x200000L
  13. #define PRDA ((struct prda *) PRDA_ADDRESS)
  14.  
  15. struct prda_sys {
  16.     pid_t t_pid; 
  17.         u32   t_hint;
  18.         u32   t_dlactseq;
  19.         u32   t_fpflags;
  20.         u32   t_prid;        /* processor type, $prid CP0 register */
  21.         u32   t_dlendseq;
  22.         u64   t_unused1[5];
  23.         pid_t t_rpid;   
  24.         s32   t_resched;
  25.         u32   t_unused[8];
  26.         u32   t_cpu;        /* current/last cpu */
  27.  
  28.     /* FIXME: The signal information, not supported by Linux now */
  29.     u32   t_flags;        /* if true, then the sigprocmask is in userspace */
  30.     u32   t_sigprocmask [1]; /* the sigprocmask */
  31. };
  32.  
  33. struct prda {
  34.     char fill [0xe00];
  35.     struct prda_sys prda_sys;
  36. };
  37.  
  38. #define t_sys           prda_sys
  39.  
  40. ptrdiff_t prctl (int op, int v1, int v2);
  41.  
  42. #endif
  43.